package com.rgp.internalcommon.common;

/**
 * @author nhp
 * @version 1.0
 * @description TODO
 * @date 2024-04-10 21:38
 */
public enum CommonStatusEnum {
    SUCCESS(200,"success"),
    FAIL(201,"fail"),
    ERROR(404,"未知异常"),

    //验证码异常相关code范围[10000-10099]
    FAIL_SEND_VERIFICATIONCODE_ERROR(10000,"生成验证码失败，请稍后再试"),
    PHONENUMBER_ERROR(10001,"手机号有误"),
    VERIFICATIONCODE_ERROR(10002,"验证码错误，请重新输入验证码"),
    VERIFICATIONCODE_TIMEOUT_ERROR(10003,"验证码已过期，请重新输入验证码"),

    //乘客用户个人信息相关[10100-10199]
    FAIL_GET_PASSENGER_INFO_ERROR(10100,"乘客信息不存在"),
    FAIL_REGIST_PASSENGER_ERROR(10101,"注册乘客失败"),

    //Token相关[10200-10299]
    TOKEN_NOT_EXIST_ERROR(10200,"未携带token，请先登录"),
    TOKEN_ERROR(10201,"token错误"),
    TOKEN_TIMEOUT_ERROR(10202,"token已过期，请重新登录"),
    TOKEN_IS_NOT_VALID_ERROR(10203,"token无效，请重新登录"),

    //地图相关[10300-10399]
    MAP_ROUTE_PLAN_ERROR(10300,"获取地图路径规划服务失败"),
    DIC_DISTRICT_ERROR(10301,"获取地区字典表失败"),
    CREATE_SERVICE_ERROR(10302,"创建猎鹰轨迹服务失败"),
    DELETE_SERVICE_ERROR(10303,"删除猎鹰轨迹服务失败"),
    LIST_SERVICE_ERROR(10304,"查询猎鹰轨迹服务失败"),
    CREATE_TERMINAL_ERROR(10305,"创建终端失败"),
    DELETE_TERMINAL_ERROR(10306,"删除终端失败"),
    LIST_TERMINAL_ERROR(10307,"查询终端失败"),
    CREATE_TRACK_ERROR(10308,"创建轨迹失败"),
    DELETE_TRACK_ERROR(10309,"删除轨迹失败"),
    UPLOAD_TRACK_POINTS_ERROR(10310,"上传轨迹点失败"),
    AROUND_SEARCH_FAIL_EXCEPTION(10311,"周边搜索异常失败"),
    TRACK_TERMINAL_TRSEARCH_ERROR(10312,"查询轨迹信息失败"),
    TERMINAL_TRACK_NOT_EXIST_ERROR(10313,"当前终端轨迹不存在"),

    //司机用户相关[10400-10499]
    DRIVER_USER_INSERT_ERROR(10400,"新增司机信息失败"),
    DRIVER_USER_UPDATE_ERROR(10401,"更新司机信息失败"),
    DRIVER_USER_NOT_EXIST_ERROR(10402,"司机信息不存在，请前往公司通过公司招聘"),

    //车辆相关[10500-10599]
    CAR_NOT_EXIST_ERROR(10500,"车辆信息不存在"),
    CAR_INSERT_ERROR(10501,"新增车辆失败"),
    CAR_UPDATE_ERROR(10501,"车辆数据更新失败"),

    //车辆与司机的绑定关系[10600-10699]
    NOT_EXIST_DRIVER_CAR_RELATIONSHIP_ERROR(10600,"该司机与车辆的绑定关系不存在"),
    EXIST_DRIVER_CAR_RELATIONSHIP_ERROR(10601,"该司机或车辆已存在绑定关系"),
    DRIVER_CAR_RELATIONSHIP_FAIL_UNBIND_ERROR(10602,"该司机与车辆解绑失败"),
    DRIVER_CAR_RELATIONSHIP_FAIL_BIND_ERROR(10603,"该司机与车辆绑定失败"),

    //订单相关[10700-10799]
    FAIL_TO_CREATE_ORDER_ERROR(10700,"订单创建失败"),
    EXIST_UNPAY_ORDER_ERROR(10701,"当前乘客存在未支付的订单"),
    EXIST_ONGOING_ORDER_ERROR(10702,"当前乘客存在正在派单中的订单"),
    DEVICE_IS_BLACK_ERROR(10703,"当前乘客在短期内多次使用优惠券下单，请稍后下单打车"),
    ONLINE_TAXI_SERVICE_NOT_EXIST_ERROR(10704,"当前城市未开通相应的网约车服务"),
    FAIL_TO_UPDATE_ORDER_ERROR(10705,"订单修改失败"),
    NO_DRIVER_TO_DISPATCHER_ERROR(10706,"乘客附近无司机接单，请稍后下单"),
    ORDER_NOT_EXIST_ERROR(10708,"当前订单不存在"),

    //计价规则相关[10800-10899]
    TOLL_RULE_NOT_EXIST(10800,"计价规则不存在"),
    CREATE_TOLL_RULE_ERRIR(10801,"计价规则创建失败"),
    UPDATE_EXIST_TOLL_RULE_ERRIR(10802,"计价规则已存在，无需更新"),
    UPDATE_TOLL_RULE_ERRIR(10803,"计价规则更新失败"),
    TOLL_RULE_VERSION_CHANGE_ERROR(10804,"计价规则版本发生改变，请重新下单")
    ;

    private Integer code;
    private String message;

    CommonStatusEnum() {
    }

    CommonStatusEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
